package ast;

import java.util.LinkedList;

import mem.interfaces.IMem;
import environnement.interfaces.IEnv;
import ast.interfaces.IAST;
import ast.interfaces.IASTcmd;

public class ASTcmd implements IASTcmd{

	public ASTcmd(LinkedList<IAST> e) {
		
	}

	@Override
	public Object eval(IAST ast, IEnv e, IMem m) {
		if(ast instanceof ASTmove){
			ASTmove a = ((ASTmove) ast);
			a.eval(null,e, m);
		}
		if(ast instanceof ASTturn){
			ASTturn a = ((ASTturn) ast);
			a.eval(null,e, m);
		}
		return null;
	}

	@Override
	public String toTreeString(String ident,IEnv e,IMem m) {
		// TODO Auto-generated method stub
		return null;
	}
	
}
